import types from './../types/music';
import actions from './../actions/music' ;

const music  = {
    state: {
        playLists:[],
        musicAddress:'',
    },
    mutations: {
        //获取banner图
        [types.GETMUSIC](state,action){
            let plays = {
                al:action.playlist.al ,
                ar : action.playlist.ar ,
                musicAddress:action.musicAddress ,
                lyric :action.lyric
            }
            state.playLists = plays ;
            console.log(state.playLists)
        },
    },
    actions: actions,
    getters: {

    }
}
export default music ;